-- fly
-- created by zhuangsl
-- 提升闪避和闪避上限

return {
    fetchProps = function(who, status, condition)
        local props  = {};
        local endRound = condition["end_round"];

        local propId = PropM.getPropId("attrib2");
        local value  = condition["value"];
        table.insert(props, { propId, "dodge", value, endRound, });

        propId = PropM.getPropId("dodge_limit");
        value  = condition["value2"];
        table.insert(props, { propId, 1, value, endRound, });

        return props;
    end,

    desc = function(who, status, condition)
        -- 获取状态描述
        local cfg = CombatStatusM.getStatusInfo(status);
        local desc = cfg.desc;

        -- 效果
        local value = condition["value"];
        desc = string.gsub(desc, "{value}", value);

        value = condition["value2"];
        desc = string.gsub(desc, "{value2}", value);

        return desc;
    end,
};
